<template>
  <div class="indexpage">
    <!-- 调用公共头部组件 -->
    <AdminHeaderCom/>

    <!-- 主题 -->
    <main>
      <!-- 左侧：公共测导航栏 -->
      <AdminAsideCom/>

      <!-- 右侧：根据路由地址加载其他功能组件 -->
      <router-view/>
    </main>
  </div>
</template>

<script setup>
import AdminAsideCom from "../../components/admin/public/AdminAsideCom.vue";
import AdminHeaderCom from "../../components/admin/public/AdminHeaderCom.vue";

// import {inject} from 'vue'

// const AxiosData = ()=>{
//   let $axios = inject('$axios');
//   let result = $axios.get('./data1.json')
//   console.log(result);
  
// }


// AxiosData();
</script>

<style scoped>
.indexpage{
  width: 100%;
  height: 98vh;
  overflow: hidden;
}
.indexpage main{
  width: 100%;
  height: 80vh;
  display: flex;
}
</style>